; $VER: James Pond 3 HD Install-Script V1.0 by Jean-Francois Fabre
;try to figure out a place where the user usually installs his games
(if (exists "Games:" (noreq) )
(set @default-dest "Games:")
(if (exists "SYS:Games" (noreq) )
(set @default-dest "SYS:Games")
(if (exists "Work:Games" (noreq) )
(set @default-dest "Work:Games")
(if (exists "JEUX:" (noreq) )
(set @default-dest "JEUX:")
(set @default-dest "SYS:")
)
)
)
)
(set GameDir "JamesPond3")
;ask the user to select a directory to install the game into
(set default-dest
(tackon (askdir (prompt "Where would you like " @app-name " installed?\n"
"A drawer called " GameDir " will be created.")
(help @askdir-help)
(default @default-dest)
)
GameDir
)
)
(set @default-dest default-dest)
(set #data (tackon default-dest "data"))
(set #gamever
(askchoice
(prompt "Which version do you want to install?")
(help @askoptions-help)
(choices
"JST"
"WHDLoad"
)
)
)
; create the selected directory
(makedir @default-dest
(infos)
)
(makedir #data)
(if (= #gamever 0)
(
(message "\n\n\nThis loader needs the JST program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nJST is available from aminet (game/patch) or on my site\n\nhttp://jffabre.free.fr/amiga/patches.html")
(copyfiles (source "JamesPond3HD")
(dest @default-dest)
)
(copyfiles (source "JamesPond3HD.icon")
(dest @default-dest)
(newname "JamesPond3HD.info")
)
)
(
(message "\n\n\nThis slave needs the WHDLoad program (NOT INCLUDED)\n to be copied in your path\n\n(if you don't have it already)\n\nWHDLoad is available from aminet (game/patch) or on the web\n\nhttp://www.whdload.org")
(copyfiles (source "JamesPond3.icon")
(dest @default-dest)
(newname "JamesPond3.info")
)
(copyfiles (source "JamesPond3.slave")
(dest @default-dest)
)
)
)
(askdisk
(prompt ("\n\n\n\n\n\nPlease insert %s CD-ROM in any drive" @app-name))
(dest "JamesPond3")
(help ("Insert CD-ROM in any drive or you'll wait for a while!") )